package org.jeecg.modules.lab.exam.paper.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.modules.lab.exam.entity.LabExamPaperQuestionAnswer;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;


@Data
@ApiModel(value="lab_exam_paper_Question_Page对象", description="考试记录")
public class LabExamPaperQuestionPage {

    /**主键*/
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**试卷id*/
    @ApiModelProperty(value = "试卷id")
    private String paperId;
    /**试题id*/
    @Excel(name = "试题id", width = 15)
    @ApiModelProperty(value = "试题id")
    private String questionId;
    /**试题类型*/
    @Excel(name = "试题类型", width = 15)
    @ApiModelProperty(value = "试题类型")
    private String questionType;
    /**试题内容*/
    @Excel(name = "试题内容", width = 15)
    @ApiModelProperty(value = "试题内容")
    private String content;
    /**正确答案*/
    @Excel(name = "正确答案", width = 15)
    @ApiModelProperty(value = "正确答案")
    private String rightAnswer;
    /**是否已答*/
    @Excel(name = "是否已答", width = 15)
    @ApiModelProperty(value = "是否已答")
    private String answered;
    /**主观答案*/
    @Excel(name = "主观答案", width = 15)
    @ApiModelProperty(value = "主观答案")
    private String answer;
    /**试题排序*/
    @Excel(name = "试题排序", width = 15)
    @ApiModelProperty(value = "试题排序")
    private Integer sort;
    /**单题分分值*/
    @Excel(name = "单题分分值", width = 15)
    @ApiModelProperty(value = "单题分分值")
    private Integer score;
    /**实际得分(主观题)*/
    @Excel(name = "实际得分(主观题)", width = 15)
    @ApiModelProperty(value = "实际得分(主观题)")
    private double actualScore;
    /**是否答对*/
    @Excel(name = "是否答对", width = 15)
    @ApiModelProperty(value = "是否答对")
    private String isRight;

    @ExcelCollection(name="考试记录答案")
    @ApiModelProperty(value = "考试记录答案")
    private List<LabExamPaperQuestionAnswer> answerList;

}
